package com.hspedu.innerclass;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/28
 * @time 17:59
 */
public class AnonymousInnerClass03 {
    public static void main(String[] args) {
       Animal cat =  new Animal(){
            @Override
            public void eat() {

            }
        };
        System.out.println(cat.getClass());
    }
}

abstract class Animal{
    public abstract void eat();
}